package demo;

import com.aerospike.client.IAerospikeClient;
import com.aerospike.client.cluster.ClusterStats;
import com.aerospike.client.cluster.NodeStats;

public class StatTest {
    public static void main(String[] args) throws Exception {
        IAerospikeClient client = AsClientUtil.getClient();
        System.out.println("client=" + client);

        ClusterStats slusterStats = client.getClusterStats();
        NodeStats[] nodeStats = slusterStats.nodes;
        for (NodeStats item : nodeStats) {
            // (inUse,inPool)
            // BB900DEAAAFAFFA 192.168.0.10 3000 sync(0,0) async(0,0)
            System.out.println(item);
        }
    }

}
